package com.glory.erp.auth.dept.service.impl;

import java.io.Serializable;
import java.util.List;

import com.glory.erp.auth.base.BaseQueryModel;
import com.glory.erp.auth.dept.bean.Dept;
import com.glory.erp.auth.dept.bean.DeptQuery;
import com.glory.erp.auth.dept.dao.DeptDao;
import com.glory.erp.auth.dept.service.DeptService;

/**
 * @Description: 部门service实现
 * @Title: DeptServiceImpl.java
 * @Author: 樊双峰
 * @Date: 2018年5月19日 上午1:50:57
 * @Version V1.0
 */
public class DeptServiceImpl implements DeptService {

	private DeptDao deptDao;

	public void setDeptDao(DeptDao deptDao) {
		this.deptDao = deptDao;
	}

	public void save(Dept dept) {
		deptDao.save(dept);
	}

	public void update(Dept dept) {
		deptDao.update(dept);
	}

	public void delete(Dept dept) {
		deptDao.delete(dept);
	}

	public List<Dept> findAll() {
		return deptDao.findAll();
	}

	public Dept findById(Serializable uuid) {
		return deptDao.findById(uuid);
	}

	public List<Dept> findAll(BaseQueryModel qm, Integer pageNum,
			Integer pageCount) {
		return deptDao.findAll(qm, pageNum, pageCount);
	}

	public Integer getCount(BaseQueryModel qm) {
		return deptDao.getCount(qm);
	}
}